package com.momo.background.service.impl;

import com.momo.background.dao.mapping.OrderInfoMapper;
import com.momo.background.dto.OrderInfoDto;
import com.momo.background.service.OrderInfoService;
import com.momo.background.vo.HotelInfo;
import com.momo.background.vo.OrderInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderInfoServiceImpl implements OrderInfoService {

    @Resource
    OrderInfoMapper orderInfoMapper;

    @Override
    public List<OrderInfoDto> BackgroundOrder(OrderInfoVo orderInfoVo) {
        return orderInfoMapper.BackgroundOrder(orderInfoVo);
    }

    @Override
    public List<OrderInfoDto> BackgroundOrder2(OrderInfoVo orderInfoVo) {
        return orderInfoMapper.BackgroundOrder2(orderInfoVo);
    }

    @Override
    public int delOrder(OrderInfoVo orderInfoVo) {
        return orderInfoMapper.delOrder(orderInfoVo);
    }

    @Override
    public int delRoom(HotelInfo hotelInfo) {
        return orderInfoMapper.delRoom(hotelInfo);
    }
}
